package com.example.result;

import com.example.domain.Employee;
import lombok.Data;

@Data
public class EmployeeResult {
    private Long id;
    private String username;
    private String name;
    private String salt;   //盐值，加密
    private String phone;
    private String sex;
    private String idNumber;   //身份证号码

    public EmployeeResult(){}
    public EmployeeResult(Employee employee){
        this.id=employee.getId();
        this.username=employee.getUsername();
        this.name=employee.getName();
        this.salt=employee.getSalt();
        this.phone=employee.getPhone();
        this.sex=employee.getSex();
        this.idNumber=employee.getIdNumber();
    }
}
